package spotor.client.ui;

import java.util.ArrayList;
import java.util.HashMap;

import spotor.client.R;
import spotor.client.provider.SpotorContract.Plans;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.GridView;
import android.widget.SimpleAdapter;
import android.widget.TabHost;

public class HomeActivity extends Activity {
	private static final String TAG = "Home Activity";

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_home);
	}

	public void onDreamClick(View v) {
		startActivity(new Intent(this,DreamsActivity.class));
	}

	// 跳转到计划
	public void onPlanClick(View v) {
		final Intent intent = new Intent(Intent.ACTION_VIEW,Plans.CONTENT_URI);
		intent.putExtra(Intent.EXTRA_TITLE, getString(R.string.title_plans));
		startActivity(intent);
	}

	public void onBlogClick(View v) {
		startActivity(new Intent(this, BlogsActivity.class));
	}

	public void onPhotoClick(View v) {
		startActivity(new Intent(this, PhotosActivity.class));
	}

	public void onStateClick(View v) {
		startActivity(new Intent(this, StatesActivity.class));
	}

	public void onMessageClick(View v){
		
	}
	
	public void onRefreshClick(View v){
		
	}
}
